package br.com.beiramar.entity.imovel.lojaImovel;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "LojaImovel", schema = "ev")
@NamedQueries({ @NamedQuery(name = "lojaImovel.Dados", query = "Select Object(result) from LojaImovel result") })
public class LojaImovel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "idLojaImovel", unique = true, nullable = false)
	private Integer idLojaImovel;

	@Column(name = "lojaImovel")
	private String lojaImovel;

	public Integer getIdLojaImovel() {
		return idLojaImovel;
	}

	public void setIdLojaImovel(Integer idLojaImovel) {
		this.idLojaImovel = idLojaImovel;
	}

	public String getLojaImovel() {
		return lojaImovel;
	}

	public void setLojaImovel(String lojaImovel) {
		this.lojaImovel = lojaImovel;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((idLojaImovel == null) ? 0 : idLojaImovel.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LojaImovel other = (LojaImovel) obj;
		if (idLojaImovel == null) {
			if (other.idLojaImovel != null)
				return false;
		} else if (!idLojaImovel.equals(other.idLojaImovel))
			return false;
		return true;
	}

}
